<ul>
  <li>PHP</li><li>iOS</li>
  <li>Java</li><li>UI</li>
</ul>
<script src="jquery-1.12.4.min.js"></script>
<script>
  $('li').each(function(index, element) {
    console.log('第' + (index + 1) + '个:' + $(element).text());
  });
</script>
<p>
  <a href="file:///C:/Users/rise/Desktop/%E9%A6%96%E9%A1%B5/default/11.html">返回</a>
</p>